package io.renren.modules.api.service;

import io.renren.modules.api.entity.YhEvaluateDriverEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户评价司机
 * 
 * @author wangdajiang
 * @email 2750757088@qq.com
 * @date 2018-02-09 15:23:17
 */
public interface YhEvaluateDriverService {
	
	YhEvaluateDriverEntity queryObject(Long id);
	
	List<YhEvaluateDriverEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(YhEvaluateDriverEntity yhEvaluateDriver);
	
	void update(YhEvaluateDriverEntity yhEvaluateDriver);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	/**
	 * 根据司机id查出所有司机的评价，最多最近20条评价记录
	 * @param driverId 司机id
	 * @return
	 */
	List<YhEvaluateDriverEntity> queryEvaluatesByDriverId(Long driverId);


}
